package org.example.java.model;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import org.example.java.base.BaseEntity;

@TableName("t_user_profile")
public class UserProfile extends BaseEntity {

    private static final long serialVersionUID = 1;

    @TableField(value = "name", updateStrategy = FieldStrategy.NOT_NULL)
    @ApiModelProperty("username")
    private String name;

    @TableField("user_id")
    @ApiModelProperty("userId")
    private Long userId;

    @TableField(value = "email", updateStrategy = FieldStrategy.NOT_EMPTY)
    @ApiModelProperty("email")
    private String email;

    @TableField(value = "date_of_birth", updateStrategy = FieldStrategy.NOT_NULL)
    @ApiModelProperty("date of birth")
    private String dob;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDob() {
        return dob;
    }

    public void setDob(String dob) {
        this.dob = dob;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
